import request from '@/utils/request'

// 获取我的待办
export function getMyTodo() {
  return request({
    url: '/oa/approval/my-approval',
    method: 'get'
  })
}

export function agree(id) {
  return request({
    url: '/oa/approval/' + id + '/pass',
    method: 'post'
  })
}

export function schedule(id) {
  return request({
    url: '/oa/approval/schedule/' + id,
    method: 'get'
  })
}
